package org.sssc2009.guessxcess.client;

public class DataProvider {

	public static Concept getIngredients() {
		Concept ingredients = new Concept("Diets");
		Concept animalIngredient = new Concept("Animal ingredient");
		animalIngredient.add(new Individual("Ham"));
		animalIngredient.add(new Individual("Meat"));
		animalIngredient.add(new Individual("Brain"));

		Concept animalProducedIngredient = new Concept("Animal produced ingredient");
		animalProducedIngredient.add(new Individual("Egg"));
		animalProducedIngredient.add(new Individual("Milk"));

		Concept miscIngredient = new Concept("Vegetarian friendly Ingredient");
		miscIngredient.add(new Individual("Soy"));
		miscIngredient.add(new Individual("Peanut"));
		
		ingredients.add(animalIngredient);
		ingredients.add(animalProducedIngredient);
		ingredients.add(miscIngredient);
		
		return ingredients;
	}

	public static Concept getDiets() {
		Concept diets = new Concept("Diets");
		diets.add(new ComplexIndividual("Vegan", "Meat"));
		diets.add(new ComplexIndividual("Vegetarian", "Meat", "Animal Products"));
		diets.add(new ComplexIndividual("Low Fat", "Fat"));
		diets.add(new ComplexIndividual("High Protein", "Protein"));
		
		return diets;
	}

	public static Concept getDiseases() {
		Concept diseases = new Concept("Diseases");
		diseases.add(new ComplexIndividual("Coeliac disease", "Gluten"));
		diseases.add(new ComplexIndividual("Lactose intolerance", "Lactose"));
		
		return diseases;
	}

	public static Concept getRecipes() {
		Concept[] meals = new Concept[] {
				new Concept("Appertizer"),
				new Concept("Dessert", new Concept[] { new Concept("Chocolate", new Individual[] {
						new ComplexIndividual("Dark Chocolate"), new ComplexIndividual("Milk Chocolate") }), }),
				new Concept("Main Course", new Individual[] { 
						new ComplexIndividual("RecipeChickenPepperTomato", "Tomato", "Chicken", "Pepper"),
						new ComplexIndividual("RecipeChickenPepperTomatoOnion", "Tomato", "Chicken", "Pepper", "Onion"),
						new ComplexIndividual("RecipeChickenPepperTomato", "Tomato", "Pepper", "Chicken"),
						new ComplexIndividual("RecipeChickenTomato", "Tomato", "Chicken"),
						new ComplexIndividual("RecipeTomato", "Tomato")
					}), 
				new Concept("Side Dish"),
				new Concept("Entree"), };

		Concept root = new Concept("Recipes");
		for (int i = 0; i < meals.length; i++) {
			root.add((Concept) meals[i]);
		}

		return root;
	}

}
